import {get} from 'request-promise';
import { writeFile } from 'fs-extra';

async function getCleanCodeArtilce(){
    try {
        let articles = await get('https:en.wikopebia.org/wiki/RObert')
        await writeFile("article.html",articles);
        console.log('完成');
    } catch (error) {
        console.log(error)
    }
}

await getCleanCodeArtilce(); 